package com.onland.dfish.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onland.dfish.entity.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户Mapper接口
 */
public interface UsersMapper extends BaseMapper<Users> {
    /**
     * 用户找回密码
     * @param password
     * @return
     */
    int updatePasswordByCode(@Param("password") String password,@Param("email") String email);

    /**
     * 查询关注
     * @param userId
     * @return
     */
    List<Users> queryLike(int userId);

    /**
     * 查询粉丝
     * @param userId
     * @return
     */
    List<Users> queryFans(int userId);
}
